<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		>
<f:view>
	<f:loadBundle basename="bundle.student" var="studentBundle"/>
	<f:loadBundle basename="bundle.login" var="loginBundle"/>
	<head>
		<meta http-equiv="pragma" content="no-cache"/>
		<meta http-equiv="cache-control" content="no-store"/>
		<meta http-equiv="content-type" content="text/html; charset=utf-8;"/>
		<link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/main.css"/>
		<title>
			#{studentBundle.students}
			<ui:insert name="title"/>
		</title>
	</head>
	<body onload="loadEffects();" onunload="unloadEffects();">

	<div id="page" class="page">
		<div id="header" class="header">
			<div id="logo" class="logo">
				<a href="#{facesContext.externalContext.requestContextPath}">
					<span class="logo"/>
				</a>
			</div>
			<a4j:form>
				<rich:panel id="loginBar" styleClass="loginbar">
					<h:panelGroup rendered="#{empty userContext.currentUser}">
						<h:outputText value="#{loginBundle.notLogged} "/>
						<a4j:commandLink value="#{loginBundle.login}" action="login"/>
					</h:panelGroup>
					<h:panelGroup rendered="#{not empty userContext.currentUser}">
						<h:outputText value="#{loginBundle.loggedAs} #{userContext.currentUser.name}. "/>
						<a4j:commandLink value="#{loginBundle.logout}" action="logout"/>
					</h:panelGroup>
					<rich:spacer width="30"/>
				</rich:panel>
			</a4j:form>
		</div>
		<rich:panel id="center" styleClass="center">
			<ui:insert name="center"/>
		</rich:panel>

		<div id="footer" class="footer">
			Copyright © 2009 IT Dep. BSUIR. All rights reserved.
			<br/>
			<a href="mailto:iis-support@bsuir.by">Contact Us</a>
			<br/>
			<a href="http://itdep.bsuir.by:8888/jira">BSUIR JIRA</a>
		</div>
	</div>

	</body>
</f:view>
</html>
